package com.ruoyi.project.wx.user.service;

import com.ruoyi.common.utils.text.Convert;
import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import com.ruoyi.project.wx.user.domain.FollowUser;
import com.ruoyi.project.wx.user.mapper.FollowUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("followUserService")
public class FollowUserServiceImpl implements FollowUserService {

    @Autowired
    private FollowUserMapper followUserMapper;


    @Override
    public int insert(FollowUser followUser) {
        return followUserMapper.insert(followUser);
    }

    @Override
    @DataScope(tableAlias = "w")
    public List<FollowUser> followUserlist(FollowUser followUser) {
        return followUserMapper.followUserlist(followUser);
    }

    @Override
    public int delfollowUserByIds(String ids) {
        return followUserMapper.delfollowUserByIds(Convert.toStrArray(ids));
    }
}
